<?php
$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
if($_RQ['op']=='main'){
	$id=intval($_RQ['id']);
	$mid=intval($_RQ['mid']);
	$fromuser=intval($_RQ['fromuser'])?:intval($_RQ['f']);
	$goodsid=intval($_RQ['goodsid'])?:intval($_RQ['g']);
	$poster=pdo_get('jy_poster_poster',array('id'=>$id,'uniacid'=>$_SESSION['uniacid']));
	if($poster['type']==1){
		$url='jy_weishop/index//fromuser='.$fromuser;
	}elseif($poster['type']==2){
		$url='jy_weishop/merch//uid='.$mid.'&fromuser='.$fromuser;
	}elseif($poster['type']==3 || $goodsid){
		$pluginname=$_RQ['pluginname']?:'jy_weishop';
		$url=$pluginname.'/goods.detail//&id='.$goodsid.'&mid='.$mid.'&fromuser='.$fromuser;
	}elseif($poster['type']==4){
		$url='jy_commission/myshop//mid='.$mid.'&fromuser='.$fromuser;
		if($poster['fenxiao_level']){
			model('jy_commission/member')->set_parent($_SESSION['uid'],$fromuser);
		}
		if($poster['fenxiao_set']){
			model('jy_commission/member')->checkmember($_SESSION['uid'],'',true);
		}
	}elseif($poster['type']==5){
		$url=custom_url($poster['ewmurl']).'&fromuser='.$fromuser;
		$url=url_tolinks($url);
	}else{
		$url='jy_weishop/index//fromuser='.$fromuser;
	}
	if($id){
		$this->model('model')->get_fee($id,$fromuser);
	}
	exi('','',$url);
}
?>